module.exports = function (mongoose) {
	const Schema = mongoose.Schema;
	const schemaName = 'drawings';

	const Drawing = new Schema({
		fpid: {
			type: String,
			required: true
		},
		drawing: {
			type: Object,
			default: null
		},
		createdAt: {
			type: Date,
			require: true
		},
		deletedAt: {
			type: Date,
			default: null
		},
		updatedAt: {
			type: Date,
			default: null
		},
		version: {
			type: String,
			default: null
		}
	});

	mongoose.model(schemaName, Drawing);
};